package com.alpaak.common.exception;



public class BusinessException extends RuntimeException {
	
	/**
	 * serialVersionUID:TODO(用一句话描述这个变量表示什么).
	 */
	private static final long serialVersionUID = -3237814947558823411L;

	private String errCode;
	
	private String errMsg;

	public BusinessException(String errCode, String errMsg) {
		super();
		this.errCode = errCode;
		this.errMsg = errMsg;
	}
	
	public BusinessException(String errMsg) {
		super();
		//默认错误代码
		this.errCode = "100001";
		this.errMsg = errMsg;
	}
	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}
	
}
